package main

import "fmt"

// Author : CSR丶WARRIOR
// Time ： 2020/10/8  23:09
// TOOLS : GoLand
// FILENAME : dataTypeTransfer.go
// STATEMENT: 数据类型转换

func main() {
	var num float64 = 1.34
	fmt.Printf("%d\n", int(num)) //1
	var num2 int16 = 12
	var num3 = int64(num2)
	fmt.Println(num3)
	fmt.Printf("%.3f", float64(num2)) //12.000

}
